package com.sc.nft.entity.dto;

import cn.hutool.core.date.DateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.PrizeDrawActivityTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
@Data
public class ModificationActivityDTO {
    @ApiModelProperty(value = "唯一任务id")
    @NotNull(message = "唯一id不能为空")
    private Long id;

    @ApiModelProperty(value = "活动名称")
    @NotNull(message = "活动名称不能为空")
    private String nameActivity;


    @ApiModelProperty(value = "排序,由大到小")
    @NotNull(message = "排序不能为空")
    private Integer sort;

    @ApiModelProperty(value = "封面图片")
    @NotNull(message = "封面图片不能为空")
    private String coverImg;

    @ApiModelProperty(value = "规则图片")
    @NotNull(message = "规则图片不能为空")
    private String ruleImg;

    @ApiModelProperty("任务配置")
    private List<@Valid ActivityTaskDTO> activityTasks;

    @ApiModelProperty("活动开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty("活动结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

}
